package com.infoblazer.grailsmaps

class City {
  static mapping = {
    table 'city'
    version false
    id column: 'id', generator: 'increment'
    cityName column: 'cityname'
    latitude column: 'latitude'
    longitude column: 'longitude'
    state column: 'statelocale'
    zipcodes column: 'city'
  }
  static constraints = {
  }

  static belongsTo = [state: State]
  static hasMany = [zipcodes: Zipcode]

  int id
  String cityName
  BigDecimal latitude
  BigDecimal longitude

}
